package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 地址对象 sys_biz_user_address
 *
 * @author lixinchen
 * @date 2024-01-09
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_user_address")
public class SysBizUserAddress extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;
    /**
     * 商铺用户id(销售人员添加商铺地址时使用)
     */
    @Excel(name = "商铺用户id(销售人员添加商铺地址时使用)")
    private Long shopUserId;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String phone;

    /**
     * 省
     */
    @Excel(name = "省")
    private String province;

    /**
     * 市
     */
    @Excel(name = "市")
    private String city;

    /**
     * 区
     */
    @Excel(name = "区")
    private String area;

    /**
     * 收件人姓名
     */
    @Excel(name = "收件人姓名")
    private String name;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    private String details;

    /**
     * 状态 0 常规 1 默认
     */
    @Excel(name = "状态 0 常规 1 默认")
    private Integer status;
    /**
     * 是否有效（与默认站点授权地址不匹配就为0 匹配为1）
     */
    @TableField(exist = false)
    private Integer valid;

    /**
     * 街道
     */
    private String street;

    /**
     * 纬度
     */
    private String lat;

    /**
     * 经度
     */
    private String lng;

    /**
     * 门牌号
     */
    private String houseNum;

    /**
     * provinceCode
     */
    private String provinceCode;

    /**
     * cityCode
     */
    private String cityCode;

    /**
     * areaCode
     */
    private String areaCode;

    /**
     * streetCode
     */
    private String streetCode;



    public String lineName;

}
